package com.example.sps.pojo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @ProjectName: Sps
 * @Titile: EmpInfoUpdate
 * @Author: nency
 * @Description: TODO
 */
@Data
public class EmpInfoUpdateDTO implements Serializable {
    @NotBlank(message = "员工名称不能为空")
    private String empName;
    @NotBlank(message = "手机号不能为空")
    @Length(max = 11,min = 11,message = "手机号只能为11位")
    @Pattern(regexp = "^1[3-9][0-9]{9}",message = "手机号格式错误")
    private String phone;
    private String remark;
    private MultipartFile avatar;
}
